package com.yu.xcx.entity;


import org.springframework.http.HttpMethod;

import java.util.Map;


public class SendParam<T> {
    private String url;
    private Object postParam;
    private Map<String,String> getParam;
    private HttpMethod sendType;
    private Class<T> classTr;

    public SendParam() {
        this.sendType = HttpMethod.GET;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Object getPostParam() {
        return postParam;
    }

    public void setPostParam(Object postParam) {
        this.postParam = postParam;
    }

    public Map<String, String> getGetParam() {
        return getParam;
    }

    public void setGetParam(Map<String, String> getParam) {
        this.getParam = getParam;
    }

    public HttpMethod getSendType() {
        return sendType;
    }

    public void setSendType(HttpMethod sendType) {
        this.sendType = sendType;
    }

    public Class<T> getClassTr() {
        return classTr;
    }

    public void setClassTr(Class<T> classTr) {
        this.classTr = classTr;
    }
}